package com.why.serviceorder.client;

import com.why.commonresults.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @program: guli_parent
 * @description:
 * @author: @why
 * @create: 2021-02-23 14:11
 **/
@FeignClient("service-ucenter")
public interface UserClient {
    /**
     * 远程调用查询用户信息
     * @param id
     * @return
     */
    @GetMapping("/api/ucenter/getInfoById/{id}")
    UcenterMemberOrder getInfoById(@PathVariable("id") String id);
}
